<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="../common.jsp"%>
<%@ page import="org.springside.core.Constants"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@page import="cn.firstsoft.firstframe.util.ContextUtils"%>
<html>
<head>
<title>管理控制台 - 环境设置</title>
<%@ include file="/common/meta2.jsp"%>
<link href="../style.css" type="text/css" rel=stylesheet>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="StyleSheet" href="../../scripts/dtree/dtree.css" type="text/css" />
<script type="text/javascript" src="../../scripts/dtree/dtree.js"></script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="menutable">
    <tr> 
      <td align="left" background="../images/tree_title_bg.gif"><img src="../images/tree_title_pic.gif" width="14" height="20"></td>
      <td align="right" background="../images/tree_title_bg.gif"><img src="../images/tree_title_pic.gif" width="14" height="20"></td>
    </tr>
    <tr> 
      <td colspan="2"> <br><div class="dtree">
	
	<script type="text/javascript">
	 <!--
		d = new dTree('d');
		d.add(0, -1, '环境设置&nbsp;&nbsp;(<a href="javascript: d.openAll();">展开</a>|<a href="javascript: d.closeAll();">收缩</a>)');
		d.selected = 0;
        //d.add('1', '0', '服务器设置','server.jsp','','right','','','true');
        d.add('2', '0', '基础设置','','','right','','','true');
        <% if(ContextUtils.isValidModule("workflow")){%>
        d.add('3', '2', '工作流参数','setting_edit.jsp?type=workflow','','right','','','true');
         <%}%>
         
         <% if(ContextUtils.isValidModule("email2")){%>
        d.add('4', '2', '邮件参数','setting_edit.jsp?type=mail','','right','','','true');
         <%}%>
        <% if(ContextUtils.isValidModule("message")){%>
        d.add('5', '2', '消息中心','setting_edit.jsp?type=message','','right','','','true');
         <%}%>
        d.add('6', '2', '其他参数','setting_edit.jsp?type=other','','right','','','true');
        d.add('7', '0', '集成管理','','','right','','','true');
       //linlian 2012-5-3 此功能重构到基础数据同步及系统集成设置功能中去了
       // d.add('8', '7', 'EAS集成','eas.jsp','','right','','','true');
        <%//建议将部分放在java文件中 
         if(ContextUtils.getInterfaceLicense("sms")){%>
         d.add('9', '7', '手机短信集成','mobile.jsp','','right','','','true');
        <%}%>
        //d.add('10', '7', 'RTX通讯集成','rtx.jsp','','right','','','true');
    
          d.add('10', '7', '通讯集成', '<%=request.getContextPath()%>/admin/comm.do?method=query', '', 'right', '', '', 'true');
       
         
        //d.add('11', '7', '档案集成','archive.jsp','','right','','','true');
        //d.add('12', '7', '论坛集成','forum.jsp','','right','','','true');
        
         <% if(ContextUtils.getInterfaceLicense("dynamic")){%>
        d.add('13', '7', '动态密码集成','dynamic.jsp','','right','','','true');
         <%}%>
        <% if(ContextUtils.getInterfaceLicense("archive")){%>
        d.add('14', '7', '档案系统集成','setting_edit.jsp?type=archive','','right','','','true');
        <%}%>
        <% if(ContextUtils.getInterfaceLicense("kingdee_k3")
        		||ContextUtils.getInterfaceLicense("kingdee_eas")){%>
         d.add('20', '7', '数据同步设置','data_sync_setting.jsp','','right','','','true');
        <%}%>
        <% if((ContextUtils.getInterfaceLicense("kingdee_k3")||ContextUtils.getInterfaceLicense("kingdee_eas"))
        		&&ContextUtils.getInterfaceLicense("business")){%>
        d.add('21', '7', '系统集成设置','integration_setting.jsp','','right','','','true');
         <%}%>
       // d.add('15', '7', '业务系统集成','business_edit.jsp','','right','','','true');
        
        <% if(false){%>
        d.add('16', '0', '参数设置','field_list.jsp','','right','','','true');
        <%}%>
        <% if(ContextUtils.getInterfaceLicense("kingdee_k3")&&ContextUtils.getInterfaceLicense("business")){%>
        d.add('17', '7', '集成帐套配置','sob_edit.jsp','','right','','','true');
         <%}%>
        d.add('18', '0', '索引管理','<%=request.getContextPath()%>/plugins/compass/rebuiltIndexRecord.do?method=query','','right','','','true');
        d.add('19', '0', '刷新设置','property_refresh.jsp','','right','','','true');
		document.write(d);
      //-->
	</script>

        </div>
        <br> </td>
    </tr>
  </table>

</body>
</html>
